﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Library
{
    class Book: Makulatura
    {
        public string author { get; set; }
        public int age { get; set; }
        public Book(string Author, int Age, int Price, string Brend, int Size, string Name) : base()
        {
            this.author = Author;
            this.age = Age;
            this.price = Price;
            this.brend = Brend;
            this.size = Size;
            this.name = Name;
        }
        public override string ToString()
        {
            return this.name + "$" + this.brend + "$" + this.price + "$" + this.size + "$" + this.author + "$" + this.age + "\r\n";
        }
    }
}
